package com.Ivy.extend;

import com.Ivy.object.Person;
public class Student extends Person {
    //新属性
    public String stuName;
    public String country;
    public String University;
    //新方法
    public void selfIntroduction(){
        this.stuName="钟逸伦";
        this.country="美国";
        this.University="牛津大学";
        System.out.println("大家好,我是"+stuName+"来自"+country+",毕业于"+University+"");
    }
    public  void sayHi(){
        this.setName("Dylan");
        super.sayHi();
    }
}
